// pages/detail/detail.js
import http from '../../common/http'
Page({

    /**
     * 页面的初始数据
     */
    data: {
        detail:"",
        title:'',
        isShow:true
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {
        wx.showLoading({
          title: '加载中...',
        })

        let obj={
            url:'/1700-3?showapi_appid=985280&showapi_sign=59608625ed8243edbb9de8740853d3f3&id='+options.id
        };
        http(obj).then(res=>{
            this.setData({
                detail:res.data.showapi_res_body.content,
                 title:options.title,
                 isShow:false
            });
            wx.hideLoading({
              success: (res) => {},
            })
        })
    },
})